package com.css.fxfzysx.modules.ysxManagement.controller;

import com.css.fxfzysx.base.response.RestResponse;
import com.css.fxfzysx.modules.ysxManagement.service.HaManageService;
import com.css.fxfzysx.modules.ysxManagement.vo.HaManageVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 *高层结构层间位移角限值管理
 */
@RestController
@RequestMapping("haManage")
public class HaManageController {

    @Autowired
    private HaManageService haManageService;

    /**
     * 高层结构层间位移角限值管理添加或修改
     *
     * @return
     */
    @PostMapping("/saveOrUpdateHaManage")
    public RestResponse saveOrUpdateHaManage(@RequestBody HaManageVo haManageVo) {
        return haManageService.saveOrUpdateHaManage(haManageVo);
    }

    /**
     * 高层结构层间位移角限值管理查询
     *
     * @return
     */
    @GetMapping("/getAllHaManage")
    public RestResponse getAllHaManage(String titleName) {
        return haManageService.getAllHaManage(titleName);
    }

    /**
     * 高层结构层间位移角限值管理删除
     *
     * @return
     */
    @GetMapping("/deleteHaManageById")
    public RestResponse deleteHaManageById(String haManageIds,String arrangeIds) {
        return haManageService.deleteHaManageById(haManageIds,arrangeIds);
    }
}
